<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>ProfeCRM</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <%=stylesheet_link_tag 'app_layout' %>
    <!--[if IE]>
    <%=stylesheet_link_tag 'ie' %>
    <![endif]-->
    <%=stylesheet_link_tag 'scaffold' %>
    <%=stylesheet_link_tag 'layout' %>
    <%=stylesheet_link_tag 'buttons' %>
    <%=javascript_include_tag :defaults %>
    <%=javascript_include_tag :fckeditor %>
    <%=javascript_include_tag 'lowpro' %>         
  </head>
  
  <body class="twoColElsLtHdr">
    
    <div id="container">
      <div id="header">
        <%= image_tag 'logo.png' %>
      <!-- end #header --></div>
      <%if logged_in? %>
        <div id="sidebar1">
          <ul class="actions">
            <li><%=link_to 'Asiakkaat', customers_url %></li>
            <li><%=link_to 'Tarjoukset', quotes_url %>
            <li><%=link_to 'Yhteyshenkilöt', search_contacts_url %></li>
            <li><%=link_to 'Yhteydenotot', conversations_url%></li>
            <%if authorized? 'employees', 'list' %>
              <li><%=link_to 'Resurssit', employees_url%></li>
            <%end%>
            <%if authorized? 'teams', 'list' %>
              <li><%=link_to 'Joukkueet', teams_url%></li>
            <%end%>
            <%if authorized? 'users', 'list' %>
              <li><%=link_to 'Käyttäjät', users_url%></li>
            <%end%>
          </ul>
          <div class="logout">
            <%=link_to 'Kirjaudu ulos', '/logout'%>
          </div>
        </div>
      <% end %>
      <div id="mainContent">
        <%=yield %>
      </div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <p>&copy; 2007 - ProfeCons Oy</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <iframe id='upload_frame' name="upload_frame" style="width:1px;height:1px;border:0px" src="/blank.html">
    </iframe>
  </body>
</html>
